introduce domain_max_vcpus() helper and implement per arch
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Jan 2015 11:44:03 +0000 (12:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jan 2015 11:44:03 +0000 (12:44 +0100)
commit2f3dd9c8c6c0dabaac47e16ac47fbfc9fb695842
treebc34da0a4385a2e8596ac9d6c58f623305985ee7
parent81f559e97974d057f8498845185b0ac05dcc61f4
introduce domain_max_vcpus() helper and implement per arch

This allows the common XEN_DOMCTL_max_vcpus handler to lose some x86-specific
architecture knowledge.

It turns out that Xen had the same magic number twice in-tree with different
names (HVM_MAX_VCPUS and MAX_HVM_VCPUS).  This removes all use of
MAX_HVM_VCPUS, and x86 uses HVM_MAX_VCPUS from the public headers.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/domctl.c
xen/include/asm-arm/config.h
xen/include/asm-arm/domain.h
xen/include/asm-x86/config.h
xen/include/asm-x86/domain.h